package com.gitee.wsl.ext.bitcode

/**
 * Returns the value obtained by rotating the two's complement binary representation of the specified [Int] value
 * right by the specified number of bits.
 * (Bits shifted out of the right hand, or low-order, side reenter on the left, or high-order.)
 */
fun Int.rotateRight(distance: Int): Int {
    return this.ushr(distance) or (this shl -distance)
}